{$taxonomy}_add_form_fields
Action HookDescription
Fires after the Add Term form fields. The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug. Possible hook names include: - `category_add_form_fields` - `post_tag_add_form_fields`Hook Information
File Location |
wp-admin/edit-tags.php
View on GitHub
|
Hook Type | Action |
Line Number | 553 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$taxonomy
|
The taxonomy slug. |
Usage Examples
Basic Usage
<?php
// Hook into {$taxonomy}_add_form_fields
add_action('{$taxonomy}_add_form_fields', 'my_custom_function', 10, 1);
function my_custom_function($taxonomy) {
// Your custom code here
}
Source Code Context
wp-admin/edit-tags.php:553
- How this hook is used in WordPress core
<?php
548 *
549 * @since 3.0.0
550 *
551 * @param string $taxonomy The taxonomy slug.
552 */
553 do_action( "{$taxonomy}_add_form_fields", $taxonomy );
554 ?>
555 <p class="submit">
556 <?php submit_button( $tax->labels->add_new_item, 'primary', 'submit', false ); ?>
557 <span class="spinner"></span>
558 </p>
PHP Documentation
<?php
/**
* Fires after the Add Term form fields.
*
* The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.
*
* Possible hook names include:
*
* - `category_add_form_fields`
* - `post_tag_add_form_fields`
*
* @since 3.0.0
*
* @param string $taxonomy The taxonomy slug.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-admin/edit-tags.php
Related Hooks
Related hooks will be displayed here in future updates.